package controllers

import (
	"github.com/gin-gonic/gin"
	log "github.com/sirupsen/logrus"
	"net/http"
	"simulationFulu/models"
)

func AuthCodeGet(c *gin.Context) {
	var req models.AuthCodeGetReq //通用请求结构
	// 绑定结构 错误处理
	if err := c.ShouldBind(&req); err != nil {
		c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
		return
	}
	log.Infof("[AuthCode]【%s】", req.AuthCode)
	c.JSON(http.StatusOK, gin.H{"code": 200, "message": "success"})
}
